<?php
    foreach ($this->dataGenset as $data)
    {
?>
<tr>
    <td>
        <?php echo $data['serial_number_genset']; ?>
    </td>
    <td>
        <?php echo $data['genset_model']; ?>
    </td>
    <td>
        <?php echo $data['daya_kva']; ?>
    </td>
    <?php if ($this->action == 'edit' || $this->action == 'add') { ?>
    <td>
        <?php echo '<a href="" id="deleteGenset" value="'.$data['id_genset'].'"><img src="'.$this->baseUrl().'/content/images/delete.png" /></a>'; ?>
    </td>
    <?php } ?>
</tr>
<?php } ?>